<div class="panes_vertical">
	<div class="box">	
		<form method="post" action="<{$APPLICATION_URL}>/Admin/Tasks/searchUser" name="frmForm" enctype="multipart/form-data">
			<fieldset>
				<legend>Tìm user</legend>															
				<p>
					<label>Fullname:</label>
					<input type='text' id='fullname' name='fullname' value='<{$fullname}>' class="textfield" style="width: 50%;" max-length="100">					
				</p>
				<p>
					<label>Email:</label>
					<input type='text' id='email' name='email' value='<{$email}>' class="textfield" style="width: 50%;" max-length="100">					
				</p>
				<p>
					<input type="submit" name="submit" class="button" value="Tìm"  />
					<input type="reset" name="reset" class="button" value=" Reset " />
				</p>
			</fieldset>
		</form>
		<{if $itemList|@count > 0}>
		<table border="0" cellpadding="0" cellspacing="0" class="grid_table wf">
			<tr>
				<th width="40">STT</th>
				<th width="120">Họ tên</th>
				<th width="120">Email</th>
				<th width="120">Ngày sinh</th>
				<th width="120">Điện thoại</th>
				<th width="120">Giới tính</th>
			</tr>
				
				<{foreach from=$itemList item=item name='items'}>
				
				<tr>
					<td><{$smarty.foreach.items.index+1}></td>
					<td><{$item.fullname}></td>
					<td><{$item.email}></td>
					<td><{$item.birthday}></td>
					<td><{$item.phone}></td>
					<td><{$item.gender}></td>			
				</tr>
				<{/foreach}>
				
		</table>
		<{else}>
		<h1 align="center">Không tìm thấy!</h1>
		<{/if}>
	</div>
</div>

<script type="text/javascript">
    function formSubmit()
    {
    	var theform = document.frmForm;
    	theform.actionForm.value ='Tìm';
    	theform.submit();
    	return true;
    }
    </script>